package com.bawei.shopping2.repository

import com.bawei.shopping2.entity.BannerEntity
import com.bawei.shopping2.entity.CategoryEntity
import com.bawei.shopping2.entity.GoodsEntity
import com.bawei.shopping2.http.ApiResponse
import com.bawei.shopping2.http.ApiService
import com.bawei.shopping2.http.RetrofitManager
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Query
import javax.inject.Inject
//仓库
class DetailRepository @Inject constructor(private var apiService: ApiService){
    //商品详情
    suspend fun goodsDetail( goods_id:Int):ApiResponse<GoodsEntity>{
        return apiService.goodsDetail(goods_id)
    }
    //添加购物车
    suspend fun addCar( requestBody: RequestBody):ApiResponse<String>{
        return apiService.addCar(requestBody)
    }

}